#include "Subsystems/BlockBehaviors/SubsystemFireworksBlockBehavior.h"

namespace PocketSurvival
{
    bool SubsystemFireworksBlockBehavior::onHitAsProjectile(std::shared_ptr<CellFace> cellFace, ComponentBody *componentBody, WorldItem *worldItem)
    {
        // 直接移除，服务器不需要爆炸效果
        worldItem->toRemove = true;
        return true;
    }

    void SubsystemFireworksBlockBehavior::load(const nlohmann::json &json) {}

    static const std::string subsystemName = "FireworksBlockBehavior";
    const std::string &SubsystemFireworksBlockBehavior::getName() const
    {
        return subsystemName;
    }
}
